<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Collection;
use app\admin\model\drama\Recharge as RechargeModel;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        header('Location: ' . '/h5/');
        exit();
    }
    public function daping()
    {
        $data = json_decode(curl_get('http://lh.vx05.com/addons/drama/wechat/recharge_user_list'),true);
        $w_arr=['日','一','二','三','四','五','六'];
        $w=$w_arr[date('w')];
        $this->view->assign('w', $w);
        $this->view->assign('data', $data);
        return $this->view->fetch();
    }
}
